﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="StudentEnrollCourses.aspx.cs" Inherits="UniversityStudentManagemnetSystem.UI.StudentEnrollCourses" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
 <style type="text/css">
        .style4
        {
            width: 118px;
        }
        .style5
        {
            height: 21px;
        }
        .style7
        {
            width: 250px;
            height:21px;
            }
        #dateText
        {
            height: 17px;
            margin-bottom: 5px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<div align="center">
<fieldset style="width: 800px; height: 680px;">
<fieldset style="width:300px; height:200px; ">
<legend style="color: green"> Student Information </legend>
<table align="center">
<tr>
<td>
    <asp:Label ID="label1" runat="server" Text="Reg No"></asp:Label>
    </td>
<td class="style4">
    <asp:TextBox ID="regNoTextBox" runat="server"></asp:TextBox>
    </td>
<td class="style5">
    <asp:Button ID="studentSearchButton" runat="server" Text="Search" 
        onclick="studentSearchButton_Click" />
    </td>
</tr>
<tr>
<td>
    <asp:Label ID="Label2" runat="server" Text="Name"></asp:Label>
    </td>
<td class="style4">
    <asp:TextBox ID="nameTextBox" runat="server" Enabled="False"></asp:TextBox>
    </td>
<td class="style5">
    <asp:Label ID="Label3" runat="server" Text="Date"></asp:Label>
    </td>
<td class="style4">
    <asp:TextBox ID="dateTextBox" runat="server"></asp:TextBox>
    </td>
</tr>
<tr>
<td>
    <asp:Label ID="Label4" runat="server" Text="Email"></asp:Label>
    </td>
<td class="style4">
    <asp:TextBox ID="emailTextBox" runat="server" Enabled="False"></asp:TextBox>
    </td>
</tr>
<tr>
<td>
    <asp:Label ID="Label5" runat="server" Text="Department"></asp:Label>
    </td>
<td class="style4">
    <asp:TextBox ID="departmentNameTextBox" runat="server" Enabled="False"></asp:TextBox>
    </td>
    <td>
        <asp:Label ID="departmentIdLabel" runat="server" Enabled="False" 
            Visible="False"></asp:Label>
    </td>
</tr>
<tr>
<td >Course To Enroll </td>
<td class="style4">
    <asp:DropDownList ID="courseEnrollDropDownList1" runat="server" 
        style="margin-left: 0px">
    </asp:DropDownList>
    </td>
<td class="style5">
    <asp:Button ID="studentEnrollButton" runat="server" Text="Enroll" 
        onclick="studentEnrollButton_Click" />
    </td>
</tr>
<tr >
<td class="style7">&nbsp;</td>
<td class="style7"></td>
<td class="style7"></td>
<td class="style7">

    <asp:LinkButton ID="allCourseForUniversityLinkButton" runat="server">All Courses of University</asp:LinkButton>
 </td>   
</tr>

</table>
</fieldset>
<div>

    <asp:Label ID="messagelabel" runat="server"></asp:Label>

</div>
<div>

    <asp:Label ID="enrollCourseMessageLabel" runat="server"></asp:Label>

</div>
<div>
<fieldset style="width: 580px; height:300px; color:Green">
<legend style="text-decoration: blink "> Enroll Courses </legend>
<table>
</table>
    <asp:GridView ID="enrollCoursesGridView" runat="server" BackColor="LightGoldenrodYellow" 
        BorderColor="Tan" BorderWidth="1px" CellPadding="2" ForeColor="Black" 
        GridLines="None" AutoGenerateColumns="False">
        <AlternatingRowStyle BackColor="PaleGoldenrod" />
        <Columns>
            <asp:BoundField DataField="Code" HeaderText="Code" SortExpression="Code" />
            <asp:BoundField DataField="CourseName" HeaderText="Name" 
                SortExpression="CourseName" />
        </Columns>
        <FooterStyle BackColor="Tan" />
        <HeaderStyle BackColor="Tan" Font-Bold="True" />
        <PagerStyle BackColor="PaleGoldenrod" ForeColor="DarkSlateBlue" 
            HorizontalAlign="Center" />
        <SelectedRowStyle BackColor="DarkSlateBlue" ForeColor="GhostWhite" />
        <SortedAscendingCellStyle BackColor="#FAFAE7" />
        <SortedAscendingHeaderStyle BackColor="#DAC09E" />
        <SortedDescendingCellStyle BackColor="#E1DB9C" />
        <SortedDescendingHeaderStyle BackColor="#C2A47B" />
    </asp:GridView>
</fieldset>
</div>
</fieldset>
</div>
</asp:Content>
